.create-container {
  background: #fff;
  min-height: 100vh;
  padding-bottom: 120rpx;
}

.video-section {
  padding: 40rpx 32rpx;
}

.section-title {
  font-size: 36rpx;
  font-weight: bold;
  margin-bottom: 24rpx;
  color: #1a1a1a;
  text-align: center;
  padding: 5px;
  border-radius: 10px;
}
.example-video {
  width: 100%;
  height: 700rpx;
  background: #000;
  border-radius: 12rpx;
}

.video-placeholder {
  width: 100%;
  height: 400rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 12rpx;
  gap: 16rpx;
  
  .placeholder-text {
    color: #999;
    font-size: 28rpx;
  }
}
/* 时长选择按钮样式 */
.duration-selector {
  margin-bottom: 24rpx;
}

.duration-buttons {
  display: flex;
  gap: 20rpx;
  width: 100%;
}

.duration-btn {
  flex: 1;
  height: 80rpx;
  background: #fff;
  border: 2rpx solid #e5e5e5;
  border-radius: 8rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28rpx;
  color: #333;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  
  /* 悬浮效果 */
  &:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2rpx);
    box-shadow: 0 4rpx 12rpx rgba(102, 126, 234, 0.15);
  }
  
  /* 选中状态 */
  &.active {
    border-color: #667eea;
    color: #667eea;
    font-weight: 600;
    box-shadow: 0 4rpx 12rpx rgba(102, 126, 234, 0.15);
  }
}
.divider {
  height: 16rpx;
  background: #f5f5f5;
}

.form-section {
  padding: 32rpx;
}

.form-item {
  margin-bottom: 48rpx;
}

.item-title {
  font-size: 32rpx;
  font-weight: bold;
  margin-bottom: 24rpx;
  color: #1a1a1a;
}

.tab-group {
  display: flex;
  background: #f5f5f5;
  border-radius: 12rpx;
  padding: 8rpx;
  margin-bottom: 24rpx;
  overflow: hidden;
}

/* 内容区域切换平滑过渡 */
.form-content-transition {
  transition: all 0.3s ease;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-content-transition.show {
  opacity: 1;
  height: auto;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 20rpx;
  border-radius: 8rpx;
  font-size: 28rpx;
  color: #666;
  transition: all 0.3s ease;
}

.tab.active {
  background: #fff;
  box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.1);
  color: #667eea;
  font-weight: 600;
}

.textarea {
  width: 100%;
  background: #fff;
  border-radius: 16rpx;
  border: 2rpx solid #e5e5e5;
  padding: 28rpx 32rpx;
  font-size: 32rpx;
  color: #333;
  min-height: 200rpx;
  box-sizing: border-box;
  text-align: left;
  word-break: break-all;
  line-height: 1.6;
  transition: all 0.3s ease;
  resize: none;
  
  /* 提高优先级：使用 !important */
  &.focused {
    background: rgba(218, 220, 221, 0.13) !important;
    border: 2rpx solid #0546fa48 !important;
    outline: none !important;
  }
  
  &::placeholder {
    color: #999;
  }
}



.text-counter {
  text-align: right;
  color: #999;
  font-size: 26rpx;
  margin-top: 8rpx;
}


/* 输入提示文本样式 */
.input-hint {
  display: block;
  font-size: 24rpx;
  color: #999;
  margin-top: -25rpx;
  margin-bottom: 45rpx;
  line-height: 1.4;
}

// ========== 数字人类型选择样式（圆形按钮设计）==========
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32rpx;
  padding: 16rpx 0;
}

.style-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  // 确保按钮容器大小足够容纳圆形区域和文字
  width: 160rpx;
  height: 200rpx;
  margin: 0 auto;
  
  // 按钮圆形区域
  .style-preview {
    // 核心圆形区域 - 完美圆形设计
    width: 140rpx;
    height: 140rpx;
    background: #fff;
    border-radius: 50%;  // 确保完美圆形
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.08);
    border: 2rpx solid #e5e5e5;
    transition: all 0.3s ease;
    // 背景色 - 作为按钮的主要视觉部分
    background: #fafafa;
    
    // 确保内部图片完美填充圆形
    image {
      width: 100%;
      height: 100%;
      object-fit: cover;  // 确保图片完全填充且不变形
      display: block; // 确保图片正确显示
    }
    
    // 图标样式（当没有图片时）
    t-icon {
      font-size: 60rpx;
      color: #999;
    }
  }
  
  &.active .style-preview {
    box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.25);
    border-color: #667eea;
  }
  
  .style-name {
    // 文字标签样式 - 在圆形下方正常显示
    margin-top: 12rpx;
    font-size: 26rpx;
    color: #333;
    text-align: center;
    font-weight: 500;
    padding: 0 8rpx;
    line-height: 1.3;
    white-space: nowrap;
  }
  
  &.active .style-name {
    color: #667eea;
    font-weight: 600;
  }
}

//说话人


.voice-picker {
  width: 100%;
  background: linear-gradient(180deg, #ffffff, #fafafa);
  border-radius: 20rpx;
  border: 1rpx solid #e5e7eb;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  min-height: 120rpx;
  display: block;
}

.picker-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32rpx;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.picker-display {
  color: #111827;
  font-weight: 400;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 32rpx;
}

.picker-arrow {
  font-size: 40rpx;
  color: #9ca3af;
  transform: rotate(180deg);
  transition: all 0.2s ease;
}

.voice-picker:active {
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
  transform: scale(0.995);
}

.voice-picker:active .picker-arrow {
  transform: rotate(180deg) scale(0.9);
  color: #6b7280;
}

/* 移除冲突的伪元素 */
.voice-picker::before,
.voice-picker::after {
  display: none;
}

.switch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24rpx;
  background: #f5f5f5;
  border-radius: 12rpx;
  font-size: 28rpx;
}

.divider-light {
  height: 1rpx;
  background: #f0f0f0;
  margin: 32rpx 0;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 20rpx 32rpx 40rpx;
  border-top: 1rpx solid #eee;
  box-shadow: 0 -2rpx 16rpx rgba(0,0,0,0.06);
}

.btn-group {
  display: flex;
  gap: 20rpx;
  width: 100%;
}

.preview-btn {
  flex: 1;
  background: #f5f7ff;
  border: 2rpx solid #667eea;
  border-radius: 50rpx;
  padding: 24rpx 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  
  .btn-text {
    color: #667eea;
    font-size: 32rpx;
    font-weight: 600;
  }
  
  &:active {
    background: #e9edff;
    transform: scale(0.98);
  }
}

.generate-btn {
  flex: 1.5;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50rpx;
  padding: 24rpx 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 6rpx 20rpx rgba(102, 126, 234, 0.4);
  
  .btn-text {
    color: white;
    font-size: 32rpx;
    font-weight: bold;
  }
  
  &:active:not([disabled]) {
    transform: scale(0.98);
    box-shadow: 0 3rpx 10rpx rgba(102, 126, 234, 0.5);
  }
  
  &[disabled] {
    opacity: 0.7;
    transform: none;
    box-shadow: 0 3rpx 10rpx rgba(102, 126, 234, 0.3);
  }
}

/* 动画效果 */
.video-section {
  opacity: 0;
  transform: translateY(20rpx);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.1s;
}

.form-section {
  opacity: 0;
  transform: translateY(20rpx);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 400px) {
  .video-section,
  .form-section {
    padding: 24rpx 16rpx;
  }
  
  .style-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16rpx;
  }
  
  .footer {
    flex-direction: column;
    gap: 16rpx;
    padding: 16rpx;
    
    .generate-btn {
      width: 100%;
      text-align: center;
    }
  }
}

/* TDesign组件样式覆盖 */
.t-textarea {
  --td-textarea-border-color: #f0f0f0;
  --td-textarea-border-radius: 12rpx;
}

.t-input {
  --td-input-border-color: #f0f0f0;
  --td-input-border-radius: 12rpx;
}

.t-radio {
  --td-radio-color: #667eea;
}